package com.gxa.service.impl;

import com.gxa.mapper.RegionMapper;
import com.gxa.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl implements RegionService {

    @Autowired
    private RegionMapper regionMapper;

    @Override
    public List<String> queryByProvince(String province) {
        List<String> towns = regionMapper.queryByProvince(province);
        return towns;
    }
}
